<div class="servers view">
<h2><?php  echo __d('servers','Server');?></h2>
	<dl>
		<dt><?php echo __d('servers','Id'); ?></dt>
		<dd>
			<?php echo h($server['Server']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('servers','Name'); ?></dt>
		<dd>
			<?php echo h($server['Server']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('servers','Panel Url'); ?></dt>
		<dd>
			<?php echo h($server['Server']['panel_url']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('servers','Panel Username'); ?></dt>
		<dd>
			<?php echo h($server['Server']['panel_username']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('servers','Panel Password'); ?></dt>
		<dd>
			<?php echo h($server['Server']['panel_password']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('servers','Added'); ?></dt>
		<dd>
			<?php echo h($server['Server']['added']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('servers','Modified'); ?></dt>
		<dd>
			<?php echo h($server['Server']['modified']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<?php echo $this->element('/menu/left')?>
	
	<h3><?php echo __d('servers','Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__d('servers','Edit Server'), array('action' => 'edit', $server['Server']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__d('servers','Delete Server'), array('action' => 'delete', $server['Server']['id']), null, __d('servers','Are you sure you want to delete # %s?', $server['Server']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__d('servers','List Servers'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__d('servers','New Server'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__d('servers','New Serversip'), array('controller' => 'serversips', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __d('servers','Related Domains');?></h3>
	<?php if (!empty($server['Domain'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __d('servers','Name'); ?></th>
		<th><?php echo __d('servers','Ipv4'); ?></th>
		<th><?php echo __d('servers','Descriptions'); ?></th>
		<th><?php echo __d('servers','Added'); ?></th>
		<th><?php echo __d('servers','Modified'); ?></th>
		<th class="actions"><?php echo __d('servers','Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($server['Domain'] as $domain): ?>
		<tr>
			<td><?php echo $domain['name'];?></td>
			<td><?php echo $domain['serversip_id'];?></td>			
			<td><?php echo $domain['descriptions'];?></td>
			<td><?php echo $domain['added'];?></td>
			<td><?php echo $domain['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__d('servers','View'), array('controller' => 'domains', 'action' => 'view', $domain['id'])); ?>
				<?php echo $this->Html->link(__d('servers','Edit'), array('controller' => 'domains', 'action' => 'edit', $domain['id'])); ?>
				<?php echo $this->Form->postLink(__d('servers','Delete'), array('controller' => 'domains', 'action' => 'delete', $domain['id']), null, __d('servers','Are you sure you want to delete # %s?', $domain['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__d('servers','New Domain'), array('controller' => 'domains', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __d('servers','Server IP\'s');?></h3>
	<?php if (!empty($server['Serversip'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __d('servers','Ipv4'); ?></th>
		<th><?php echo __d('servers','Ipv6'); ?></th>
		<th><?php echo __d('servers','Ns1'); ?></th>
		<th><?php echo __d('servers','Ns2'); ?></th>
		<th><?php echo __d('servers','Ns3'); ?></th>
		<th class="actions"><?php echo __d('servers','Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($server['Serversip'] as $serversip): ?>
		<tr>
			<td><?php echo $serversip['ipv4'];?></td>
			<td><?php echo $serversip['ipv6'];?></td>
			<td><?php echo $serversip['ns1'];?></td>
			<td><?php echo $serversip['ns2'];?></td>
			<td><?php echo $serversip['ns3'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__d('servers','View'), array('controller' => 'serversips', 'action' => 'view', $serversip['id'])); ?>
				<?php echo $this->Html->link(__d('servers','Edit'), array('controller' => 'serversips', 'action' => 'edit', $serversip['id'])); ?>
				<?php echo $this->Form->postLink(__d('servers','Delete'), array('controller' => 'serversips', 'action' => 'delete', $serversip['id']), null, __d('servers','Are you sure you want to delete # %s?', $serversip['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__d('servers','New Serversip'), array('controller' => 'serversips', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
